import request from "./requestConfig";

const Export = {
    query(){
        return request({
            method:'get',
            url:'/query'
        })
    },
    selectOne(data){
        return request({
            method:'post',
            url:'/select',
            data:data
        })
    },
    login(data){
        return request({
            method:'post',
            url:'/login',
            data:data
        })
    },
    register(data){
        return request({
            method:'post',
            url:'/register',
            data:data
        })
    },
    queryUser(id){
        return request({
            method:'post',
            url:'/queryUserId',
            data:id
        })
    },
    queryUserItem(id){
        return request({
            method:'post',
            url:'/queryUserItem',
            data:id
        })
    },
    insertMusic(data){
        return request({
            method:'post',
            url:"/add",
            data:data
        })
    },
    buyMusic(id){
        return request({
            method:'post',
            url:'/buy',
            data:id
        })
    }
}

export default Export